<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>CẨM NANG CHĂM SÓC BÉ</title>
		<script type="text/javascript" src="<?=PATH_URL.'static/js/'?>jquery-1.8.0.min.js"></script>
		<style>
			* {margin: 0; padding: 0;}
			body {width: 702px;font: 400 22px Arial;}
			.tuan_thai {border: 1px solid red; border-width: 1px 0; margin: 10px;}
			.tuan_thai > table {border: 1px solid green; margin: 5px;}
		</style>
	</head>
	<body>
		<?php foreach($all as $p){ 
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' cd_an">' . $p['cd_an'] . '</div>';
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' thuc_don">' . $p['thuc_don'] . '</div>';
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' cham_soc">' . $p['cham_soc'] . '</div>';
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' van_de">' . $p['van_de'] . '</div>';
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' phat_trien">' . $p['phat_trien'] . '</div>';
			echo '<div class="tuan_thai tu_'.$p['week'].'_den_'.$p['week_to'].' buoc_dem">' . $p['buoc_dem'] . '</div>';
		}?>
	</body>
	<script type="text/javascript">
		$(".tuan_thai > table").each(function(){
			var height = $(this).height();
			if(height > 278) {
				
				var parent = $(this).parent().attr('class');
				var index = $(this).index();
				console.log(parent + ' > ' + index + ' height: ' + height);
				console.log($(this));
			}
		});
	</script>
</html>